﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TZReport_Model.DB;
using TZRerport_Dal.Basic;

namespace TZRerport_Dal.Dal
{
    public class TZ_Report_Record_RetryDal:BaseDal<TZ_Report_Record_Retry>
    {
        public bool RemoveReportRecord(TZ_Report_Record_Retry retry, TZ_Report_Record record)
        {
            base.DbContext.Set<TZ_Report_Record_Retry>().Add(retry);
            base.DbContext.Entry<TZ_Report_Record>(record).State = System.Data.Entity.EntityState.Deleted;

            return base.SaveChanges();
        }
    }
}
